home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / include / Xm / DrawingAP.h.z / DrawingAP.h
Encoding:
C/C++ Source or Header  |  2003-11-18  |  3.4 KB  |  135 lines

  1. /*
  2.  * DrawingAP.h
  3.  *
  4.  * Copyright 2000, Silicon Graphics, Inc.
  5.  * ALL RIGHTS RESERVED
  6.  * 
  7.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  8.  * States.   Use of a copyright notice is precautionary only and does not
  9.  * imply publication or disclosure.
  10.  *
  11.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  12.  * Use, duplication or disclosure by the Government is subject to restrictions
  13.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  14.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  15.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  16.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  17.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  18.  *
  19.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  20.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  21.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  22.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  23.  * GRAPHICS, INC.
  24.  */
  25. /* 
  26.  * @OSF_COPYRIGHT@
  27.  * (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
  28.  * ALL RIGHTS RESERVED
  29.  *  
  30. */ 
  31. /*
  32.  * HISTORY
  33.  * Motif Release 1.2.5
  34. */
  35. /*   $XConsortium: DrawingAP.h /main/cde1_maint/2 1995/08/18 19:00:57 drk $ */
  36. /*
  37. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  38. #ifndef _XmDrawingAreaP_h
  39. #define _XmDrawingAreaP_h
  40.  
  41. #include <Xm/ManagerP.h>
  42. #include <Xm/DrawingA.h>
  43.  
  44. #ifdef __cplusplus
  45. extern "C" {
  46. #endif
  47.  
  48. #define XmRESIZE_SWINDOW    10
  49.  
  50.  
  51. /* Constraint part record for DrawingArea widget */
  52.  
  53. typedef struct _XmDrawingAreaConstraintPart
  54. {
  55.    char unused;
  56. } XmDrawingAreaConstraintPart, * XmDrawingAreaConstraint;
  57.  
  58. /*  New fields for the DrawingArea widget class record  */
  59.  
  60. typedef struct
  61. {
  62.    XtPointer extension;   /* Pointer to extension record */
  63. } XmDrawingAreaClassPart;
  64.  
  65.  
  66. /* Full class record declaration */
  67.  
  68. typedef struct _XmDrawingAreaClassRec
  69. {
  70.     CoreClassPart        core_class;
  71.     CompositeClassPart    composite_class;
  72.     ConstraintClassPart    constraint_class;
  73.     XmManagerClassPart    manager_class;
  74.     XmDrawingAreaClassPart    drawing_area_class;
  75. } XmDrawingAreaClassRec;
  76.  
  77. externalref XmDrawingAreaClassRec xmDrawingAreaClassRec;
  78.  
  79.  
  80. /* New fields for the DrawingArea widget record */
  81.  
  82. typedef struct
  83. {
  84.     Dimension        margin_width;
  85.     Dimension        margin_height;
  86.  
  87.     XtCallbackList        resize_callback;
  88.     XtCallbackList        expose_callback;
  89.     XtCallbackList        input_callback;
  90.  
  91.     unsigned char        resize_policy;
  92. } XmDrawingAreaPart;
  93.  
  94.  
  95. /****************************************************************
  96.  *
  97.  * Full instance record declaration
  98.  *
  99.  ****************************************************************/
  100.  
  101. typedef struct _XmDrawingAreaRec
  102. {
  103.     CorePart        core;
  104.     CompositePart        composite;
  105.     ConstraintPart        constraint;
  106.     XmManagerPart        manager;
  107.     XmDrawingAreaPart    drawing_area;
  108. } XmDrawingAreaRec;
  109.  
  110.  
  111.  
  112. /********    Private Function Declarations    ********/
  113. #ifdef _NO_PROTO
  114.  
  115. extern void _XmDrawingAreaInput() ;
  116.  
  117. #else
  118.  
  119. extern void _XmDrawingAreaInput( 
  120.                         Widget wid,
  121.                         XEvent *event,
  122.                         String *params,
  123.                         Cardinal *num_params) ;
  124.  
  125. #endif /* _NO_PROTO */
  126. /********    End Private Function Declarations    ********/
  127.  
  128.  
  129. #ifdef __cplusplus
  130. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  131. #endif
  132.  
  133. #endif /* _XmDrawingAreaP_h */
  134. /* DON'T ADD ANYTHING AFTER THIS #endif */
  135.